package ru.gitverse.deenyy.walp.model;

import jakarta.persistence.*;
import java.util.List;

@Entity
public class CalculationBatch {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    private String name;

    @OneToMany(cascade = CascadeType.ALL, mappedBy = "calculationBatch")
    private List<CalculationRequest> requests;

    @OneToMany(cascade = CascadeType.ALL, mappedBy = "calculationBatch")
    private List<GammaCalculationResult> results;

    // Getters and setters

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<CalculationRequest> getRequests() {
        return requests;
    }

    public void setRequests(List<CalculationRequest> requests) {
        this.requests = requests;
    }

    public List<GammaCalculationResult> getResults() {
        return results;
    }

    public void setResults(List<GammaCalculationResult> results) {
        this.results = results;
    }
}
